package com.xindaoapp.happypet.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageButton;

import com.xindaoapp.happypet.R;

public class HomeBannerDetailActivity extends UMBaseActivity implements OnClickListener {
    private WebView wv;
    private ImageButton back;
    private String url;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_homebanner_detail);
        url = getIntent().getStringExtra("url");
        initView();
        initData();
    }

    private void initView() {
        back = (ImageButton) findViewById(R.id.cancel);
        back.setOnClickListener(this);
        wv = (WebView) findViewById(R.id.wv_home_banner);
    }

    private void initData() {
        wv.loadUrl(url);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.cancel:
                finish();
                break;
            default:
                break;
        }
    }
}
